package com.cloud.dong.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author DJ
 * @description
 * @date 2022/2/16 9:36 下午
 **/
@RestController
public class PaymentController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/payment/nacos/{id}")
    public String paymentId(@PathVariable("id") Long id) {
        return "****serverPort:" + port + "\t id:" + id;
    }
}
